//
//  ViewController.m
//  MenuDemo
//
//  Created by hfzhangzhang on 2018/3/19.
//  Copyright © 2018年 hfzhangzhang. All rights reserved.
//

#import "ViewController.h"

#import "ZZMeunLabel.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    
    ZZMeunLabel *lable = [[ZZMeunLabel alloc]initWithFrame:CGRectMake(0, 20, 200, 200)];
    lable.text =@"这个菜单就是UIMenuController，系统默认支持UITextField、UITextView、UIWebView控件的UIMenuController相关操作,对于系统不支持UIMenuController操作的控件，我们就要自定义控件的UIMenuController来实现相关功能";
    lable.numberOfLines = 0;
    lable.customOptions = UICustomMeunItem_copy|UICustomMeunItem_unSelect;
    [self.view addSubview:lable];
    
    
    
    
    
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
